package ch.pizzapp.kurier.view;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;
import ch.pizzapp.kurier.R;
import ch.pizzapp.kurier.data.CategoryData;

/**
 * Shanuka @Cyberlmj 3:08:30 PM Email: shanuka.gayashan@cyberlmj.com
 */
@EViewGroup(R.layout.category_item)
public class CategoryItem extends RelativeLayout {

	@ViewById(R.id.forum_title)
	TextView forumTitle;

	public CategoryItem(final Context context) {
		super(context);

	}

	public CategoryItem(final Context context, final AttributeSet attrs) {
		super(context, attrs);
	}

	public void bind(final CategoryData categoryData) {
		forumTitle.setText(categoryData.getTitle());

	}
}
